package classDemo;

public class MyClass {
	public MyClass() {
		System.out.println("MyClass:MyClass: 构造函数");
	}

	private String name;
	public void setName(String name){
		this.name = name;
	}
	public String getName(){return  name;}
	public static void main(String[]args) {
		 String str = "classDemo.Uer";
//		 String str = "java.awt.Button";
	        try {
//	        	Class user.class;
	        	System.out.println((Uer.class==Uer.class)+"");
	            Class c2 = Class.forName(str);
	            System.out.println(c2.getName());
	            
	            Class class1 = Uer.class;
	            
	            System.out.println(Uer.class.getName());
	        }
	        catch(Exception e) {

	        }
	}
	
}

class Uer{
	String name;
	String sex;
}
